Skip to content

Publish Python SDK to PyPI as sst-sdk#6858

Merged
vimtor merged 4 commits into
anomalyco:devfrom
subssn21:python-sdk-pypi-pr
May 12, 2026
Merged

Publish Python SDK to PyPI as sst-sdk#6858
vimtor merged 4 commits into
anomalyco:devfrom
subssn21:python-sdk-pypi-pr

Conversation

@subssn21
Copy link
Copy Markdown
Contributor

@subssn21 subssn21 commented May 4, 2026

Summary

Publishes the SST Python SDK to PyPI as sst-sdk, so users can install with pip install sst-sdk or uv add sst-sdk instead of pointing at the git repo.

Changes (5 files)

  • sdk/python/pyproject.toml — Rename to sst-sdk, add PyPI metadata, hatch build config
  • sdk/python/README.md — Installation, migration guide, usage examples
  • sdk/python/PUBLISHING.md — One-time PyPI trusted publishing setup docs
  • .github/workflows/release.yml — Add Python SDK publish steps (after Rust, before Discord)
  • .github/workflows/check.yml — Pass GITHUB_TOKEN to docs build (fixes rate limit)

Migration for users

# Before
[project]
dependencies = ["sst"]

[tool.uv.sources]
sst = { git = "https://github.com/sst/sst", subdirectory = "sdk/python" }

# After
[project]
dependencies = ["sst-sdk"]

No code changes — from sst import Resource works the same.

Setup required before first publish

Configure trusted publishing on PyPI for sst-sdk (details in sdk/python/PUBLISHING.md).

- Rename package to sst-sdk (sst is taken on PyPI), import stays 'from sst import Resource'
- Add PyPI metadata: classifiers, keywords, license, project URLs
- Add hatch build config targeting src/sst for correct import name
- Add Python SDK publish steps to release.yml (alongside JS and Rust)
- Add PUBLISHING.md with one-time PyPI trusted publishing setup
- Expand README with installation, migration guide, and usage examples
- Pass GITHUB_TOKEN to docs build in check.yml to avoid rate limiting
Comment thread .github/workflows/release.yml Outdated
Comment thread sdk/python/pyproject.toml Outdated
Comment thread sdk/python/pyproject.toml Outdated
Comment thread sdk/python/README.md Outdated
Comment thread sdk/python/README.md Outdated
@vimtor vimtor merged commit 343c369 into anomalyco:dev May 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants